<@t.header> </@t.header> <@t.body>
<<style>
<!--
.rep_tab th,.rep_tab td{
	text-align:center;
	font-size:10px;
}
-->
</style>
	<div class="container suredy-form">
		<div class="navbar navbar-default navbar-fixed-top">
			<div class="navbar-header">
				<a class="navbar-brand" href="#" style="border-right: 1px solid #ddd;">
					<i class="icon-flag" style="color:blue;"></i>
					采样计划
				</a>
			</div>
			<ul class="nav navbar-nav suredy-form-bar" id="btList">
				
			</ul>
			<ul class="nav navbar-nav navbar-right">
				<li>
					<a href="#" class="suredy-close-form">
						<i class="icon-remove close" style="margin-right: 10px;"></i>
					</a>
				</li>
			</ul>
		</div>
		
		<div role="tabpanel" class="suredy-tabs" style="padding-top:60px;padding-bottom:50px">
			<!-- Nav tabs -->
			<ul class="nav nav-tabs" role="tablist">
				<li role="presentation" class="active">
					<a href="#tab1" aria-controls="tab1" role="tab" data-toggle="tab"> 采样信息</a>
				</li>
				<#if plan.status&gt;3>
				<li role="presentation">
					<a href="#rep" aria-controls="rep" role="tab" data-toggle="tab">检测汇总表</a>
				</li>
				</#if>
				<li role="presentation">
					<a href="#logInfo" aria-controls="logInfo" role="tab" data-toggle="tab">流转记录</a>
				</li>
			</ul>
			<!-- Tab panes -->
			<div class="tab-content" style="padding-top:10px">
				<div role="tabpanel" class="tab-pane active" id="tab1">
					<form method="post" name="form" id="form" action="${request.contextPath}/plan/save.do">
						<input type="hidden" name="ctrlInfo" id="ctrlInfo">
						<input type="hidden" name="ESID" id="ESID" value="${Session['flow_session'].sessionId}">
						<input type="hidden" name="processId" id="processId" value="${plan.processId}">
						<input type="hidden" name="id" id="id" value="${plan.id}">
						<input type="hidden" name="fileType" id="fileType" value="plan">
						<input type="hidden" name="fileTypeCode" id="fileTypeCode" value="${plan.fileTypeCode}">
						<input type="hidden" name="creatorCode" id="creatorCode" value="${plan.creatorCode}">
						<input type="hidden" name="creatorUnitCode" id="creatorUnitCode" value="${plan.creatorUnitCode}">
						<input type="hidden" name="title" id="title" value="采样计划"/>
							<div class="panel panel-info">
								<div class="panel-heading">
									<h3 class="panel-title">
										计划信息
									</h3>
								</div>
									<table class="table table-bordered">
										<tr>
											<td class="text-center">
												<b>采样日期</b>
											</td>
											<td><input type="text" name="planDate" id="planDate" class="form-control datetimepicker"  data-time="${plan.planDate}" data-foot="false" data-format="yyyy-MM-dd"></td>
											<td class="text-center">
												<b>制 定 人</b>
											</td>
											<td>${plan.creatorShortName}</td>
										</tr>
										<tr>
											<td class="text-center">
												<b>制定时间</b>
											</td>
											<td>${(plan.createTime?string('yyyy-MM-dd hh:mm:ss'))!''}</td>
											<td class="text-center">
												<b>制定部门</b>
											</td>
											<td>${plan.creatorShortUnitName}</td>
										</tr>
								</table>
							</div>
							<#if plan.status!=3>
							<div class="panel panel-info">
								<div class="panel-heading">
									<h3 class="panel-title">
										计划采样点
										<#if plan.status==0>
											<div class="btn btn-xs btn-info pull-right"  style="margin-top: -2px; margin-left:10px" onclick="delPlace()">
												<i class="icon-cog"></i>删除
											</div>
											<div class="btn btn-xs btn-info pull-right" style="margin-top: -2px; margin-left:10px" onclick="selPlace()">
											<i class="icon-cog"></i>设置采样点
											</div>
											<div class="btn btn-xs btn-info pull-right" style="margin-top: -2px; margin-left:10px" onclick="selGrabber()">
											<i class="icon-cog"></i>设置采样员
											</div>
											<div class="btn btn-xs btn-info pull-right"  style="margin-top: -2px; margin-left:10px" onclick="selGrabType()">
											<i class="icon-cog"></i>设置实验类型
											</div>
										<#elseif plan.status==1>
											<div class="btn btn-xs btn-info pull-right"  style="margin-top: -2px; margin-left:10px" onclick="delPlace()">
												<i class="icon-cog"></i>取消采样
											</div>
										</#if>
									</h3>
									
								</div>
								<table class="table table-bordered" id="palceList">
									<tr>
										<td class="text-center" width="60px">
											<input  type="checkbox" title="全选" id="selAll"/>
										</td>
										<td class="text-center">采样点</td>
										<#if plan.status==1>
											<td class="text-center">样品编号</td>
										</#if>
										<td class="text-center">
											采样人员
										</td>
										<td class="text-center">
											实验类型
										</td>
									</tr>
									<#if plan.planItems??>
										<#list plan.planItems as item>
											<tr>
												<td class="text-center" width="60px">
													<input type="checkbox" name="places" value="${item.id}"/>
												</td>
												<td class="text-center">${item.placeName}</td>
												<#if plan.status==1>
													<td class="text-center">${item.code}</td>
												</#if>
												<td class="text-center">
													${item.grabberName}
												</td>
												<td class="text-center">
													${item.testTypeName}
												</td>
											</tr>
										</#list>
									</#if>
								</table>
							</div>
						</#if>
						<#if plan.status&gt;1>
							<div class="panel panel-info">
								<div class="panel-heading">
									<h3 class="panel-title">
										检测员设置
										<#if plan.status==2>
										<div class="btn btn-xs btn-info pull-right"  style="margin-top: -2px; margin-left:10px" onclick="setInspector()">
											<i class="icon-cog"></i>设置检测员
										</div>
										</#if>
									</h3>
								</div>
								
								<table class="table table-bordered" id="itemList">
									<tr>
										<td class="text-center" width="60px">
											<input  type="checkbox" title="全选" id="selAll2"/>
										</td>
										<td class="text-center">实验类型</td>
										<td class="text-center">检测人员</td>
										<#if plan.status==3>
										<td class="text-center">状态</td>
										</#if>
									</tr>
									<#if plan.testItems??>
										<#list plan.testItems as item>
											<tr>
												<td class="text-center" width="60px">
													<input type="checkbox" name="testItem" value="${item.id}"/>
												</td>
												<td class="text-center">${item.testName}</td>
												<td class="text-center">${item.inspectorName}</td>
												<#if plan.status==3>
												<td class="text-center">${item.status}</td>
												</#if>
											</tr>
										</#list>
									</#if>
								</table>
							</div>
						</#if>
						</div>
						<div class="col-md-12 col-xs-12" id="comment-content">
						</div>
					</form>
					
					<#if plan.status&gt;3>
					<div role="tabpanel" class="tab-pane" id="rep">
						<table class="table table-bordered rep_tab" id="palceList">
							<thead>
							<tr>
								<th width="100">日期</th>
								<th width="100">样品编号</th>
								<th width="100">采样地点</th>
								<th width="60">类别</th>
								<th width="60">采样时间</th>
								<th width="60">水温</th>
								<th width="60">PH</th>
								<th width="60">浑浊度</th>
								<th width="60">余氧</th>
								<th width="60">二氧化氯</th>
								<th width="60">色度</th>
								<th width="60">嗅和味</th>
								<th width="80">肉眼可见物</th>
								<th width="60">耗氧量</th>
								<th width="60">氨氮</th>
								<th width="40">铁</th>
								<th width="40">锰</th>
								<th width="40">铝</th>
								<th width="60">总硬度</th>
							<tr>
							</thead>
							<tr>
								<td>&nbsp;</td>
								<td>&nbsp;</td>
								<td>&nbsp;</td>
								<td>&nbsp;</td>
								<td>&nbsp;</td>
								<td>&nbsp;</td>
								<td>&nbsp;</td>
								<td>&nbsp;</td>
								<td>&nbsp;</td>
								<td>&nbsp;</td>
								<td>&nbsp;</td>
								<td>&nbsp;</td>
								<td>&nbsp;</td>
								<td>&nbsp;</td>
								<td>&nbsp;</td>
								<td>&nbsp;</td>
								<td>&nbsp;</td>
								<td>&nbsp;</td>
								<td>&nbsp;</td>
							</tr>
						</table>
					</div>
					</#if>
					<div role="tabpanel" class="tab-pane" id="logInfo"></div>
				</div>
				
			</div>
		</div>
	</div>
	</@t.body> <@t.foot>

	<script src="${request.contextPath}/core/js/flow-core.js"></script>
	<script src="${request.contextPath}/core/js/jquery.form.js"></script>
	<script src="${request.contextPath}/js/suredy-datetimepicker.js"></script>
	<script src="${request.contextPath}/js/flow-app.js"></script>
	<script src="${request.contextPath}/js/suredy-modal.js"></script>
	
	<script src="${request.contextPath}/js/planForm.js"></script>
	<script src="${request.contextPath}/component/flow/js/sender.js"></script>
	<script src="${request.contextPath}/component/flow/js/comment.js"></script>
	<script type="text/javascript">
	$(document).ready(function() {
		$("#selAll").click(function(){
			setSelAll(this);
		});
		$("#selAll2").click(function(){
			setSelAll2(this);
		});
		$.suredy.datetimepicker.init();
		initForm();
	});
	</script>
</@t.foot>